#include "includes.h"

int main(int argc, char** argv) {

    /**************************
     * Console Initialization *
     **************************/
    // Font
    TCODConsole::setCustomFont("fonts/consolas12x12_gs_tc.png",TCOD_FONT_LAYOUT_TCOD | TCOD_FONT_TYPE_GREYSCALE);
    // Root Console
    TCODConsole::initRoot(WIDTH, HEIGHT, WINDOW_TITLE, FULLSCREEN);
    
    /*************
     * Game Loop *
     *************/
    bool endGame = false;
    while (!endGame && ! TCODConsole::isWindowClosed() ) {

        MessageBox* message = new MessageBox(0, 0, 10, 10, "ALERT", "Content explosion is at hand, the green earth watches in awe!");

        TCODConsole::blit(message, 0, 0, 10, 10, TCODConsole::root, 0, 0, 1.0, 1.0);
        TCODConsole::flush();
        TCOD_key_t key=TCODConsole::waitForKeypress(true);
		message->update(key);

        TCODConsole::blit(message, 0, 0, 10, 10, TCODConsole::root, 0, 0, 1.0, 1.0);
        TCODConsole::flush();
        TCODConsole::waitForKeypress(true);
		endGame = true;
    }

}
